import { makeAutoObservable } from 'mobx'

import { LOCKED } from '@/configs/Constants'
import Storage from '@/utils/Storage'
class Interactive {
  locked = Storage.get(LOCKED) !== 'false'
  signVisible = false

  constructor() {
    makeAutoObservable(this)
  }

  setLocked(locked: boolean) {
    this.locked = locked
    Storage.set(LOCKED, locked)
  }
  setSignVisible(visible: boolean) {
    this.signVisible = visible
  }
}

export default new Interactive()
